<?php

/**
 * Description of moduleLoader
 *
 * @author Christoph Vieth <mail@christoph-vieth.de>
 */
class moduleLoader {
    private $path;

    public function __construct($name, $param) {
        $callStack = new callStack();
        $callStack->push("moduleLoader()");
        if ($this->check($name)) {
            $callStack->pop();
            return true;
        } else {
            $callStack->pop();
            return false;
        }
    }

    private function check($name) {
        $callStack = new callStack();
        $callStack->push("moduleLoader->check($name)");
        $callStack->pop();
        return true;
    }

    public function run() {
        $callStack = new callStack();
        $callStack->push("moduleLoader->run($)");
        include ($this->path);
        $callStack->pop();
        return true;
    }

}

?>
